package com.example.informationEntry.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author : frosty0804@gmail.com
 * @version : v1.0
 * @projectName : informationentry
 * @className : ViewController
 * @description : TODO(一句话描述该类的功能)
 * @date : 2019/6/13 19:44
 */
@Controller
public class ViewController {


    @RequestMapping({"/","/login"})
    public ModelAndView index(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("login.html");
        return modelAndView;
    }

}
